Add a Target to the build script deps key
authorAlex Crichton <alex@alexcrichton.com>
Wed, 1 Jul 2015 17:37:21 +0000 (10:37 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 1 Jul 2015 17:37:21 +0000 (10:37 -0700)
commit8ee373ad4aaa505310843918ed5a03f9587e41e5
tree6ccd8589e3de2d6f2a239b5a342f380b5479c88d
parent4c796a1daebffd5cd7989b3e81ae857975611a49
Add a Target to the build script deps key

Previously a Target was not considered to be in the key of the map to build
script dependencies, but this meant that information like whether it was a
dev-dependency was lost. As a result libraries would depend on the build scripts
of their dev-dependencies, causing an internal error when the build script
hadn't finished yet when the library was being built.

Closes #1751
src/cargo/ops/cargo_rustc/context.rs
src/cargo/ops/cargo_rustc/custom_build.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/test_cargo_test.rs